// 贝壳前端爬取城市信息
// https://www.ke.com/city

let res = {};

$('.city_list_section>ul>li').each((i, ii) => {
	$(ii).find('.city_list .city_province').each((j, jj) => {
		const sheng = $(jj).find('.city_list_tit').text().replace(/\s+/g, '');

		const data = [];

		$(jj).find('ul>li>a').each((k, kk) => {
			data.push($(kk).text())
		})

		res[sheng] = data;
	})
});

console.log(res);